Enter submenus when activating their parent item
authorColomban Wendling <cwendling@hypra.fr>
Thu, 16 Feb 2017 16:36:17 +0000 (17:36 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Wed, 4 Oct 2017 21:52:18 +0000 (22:52 +0100)
This gives consistent behavior with e.g. Qt, Mozilla's suites and
LibreOffice (with non-truly native backends like "gen" and "gtk",
but unlike "gtk2" and "gtk3" ones that probably use true GTK menus).

This behavior is expected by at least some accessibility users, and
it seems good to behave like other common applications and toolkits
in this area.  There should be no issue in doing so either for current
users, as it only enters the submenu instead of not doing anything.

https://bugzilla.gnome.org/show_bug.cgi?id=778811

gtk/gtkmenushell.c

index 97532e0e4a68f4175272a448ce44eb873e2e9967..732f6523afa5d2f00690011d97907a5e7107cd8e 100644 (file)
@@ -1434,7 +1434,7 @@ gtk_real_menu_shell_activate_current (GtkMenuShell *menu_shell,
                                     priv->active_menu_item,
                                     force_hide);
     else
-      _gtk_menu_item_popup_submenu (priv->active_menu_item, FALSE);
+      gtk_menu_shell_select_submenu_first (menu_shell);
   }
 }